<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>3dchess: Turn Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">3dchess
   </div>
   <div id="projectbrief">Basic chess application with OpenGL graphics and AI</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_turn-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Turn Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Represents a chess turn.  
 <a href="class_turn.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_turn_8h_source.html">Turn.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a37c32ff26937b1394f85ff8de898922f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><b>Action</b> { <br/>
&#160;&#160;<b>Move</b>, 
<b>Castle</b>, 
<b>Forfeit</b>, 
<b>Pass</b>, 
<br/>
&#160;&#160;<b>PromotionQueen</b>, 
<b>PromotionBishop</b>, 
<b>PromotionKnight</b>, 
<b>PromotionRook</b>
<br/>
 }</td></tr>
<tr class="separator:a37c32ff26937b1394f85ff8de898922f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a28fde668986da6b0153ea09aa25af623"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a28fde668986da6b0153ea09aa25af623"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Turn</b> (<a class="el" href="struct_piece.html">Piece</a> piece, Field from, Field to, Action action)</td></tr>
<tr class="separator:a28fde668986da6b0153ea09aa25af623"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abadbaefe20a6245975c0de0fd6b5c2e2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abadbaefe20a6245975c0de0fd6b5c2e2"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isMove</b> () const </td></tr>
<tr class="separator:abadbaefe20a6245975c0de0fd6b5c2e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab80f8406ebe519148300791fd02af15c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab80f8406ebe519148300791fd02af15c"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isCastling</b> () const </td></tr>
<tr class="separator:ab80f8406ebe519148300791fd02af15c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5070dcefee0473cc075a60669bea03b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa5070dcefee0473cc075a60669bea03b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isPromotion</b> () const </td></tr>
<tr class="separator:aa5070dcefee0473cc075a60669bea03b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f869b1f519554a46abc48726e24dfe7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7f869b1f519554a46abc48726e24dfe7"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isForfeit</b> () const </td></tr>
<tr class="separator:a7f869b1f519554a46abc48726e24dfe7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ba353a3aacf9c6a99904092e6925080"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0ba353a3aacf9c6a99904092e6925080"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isPass</b> () const </td></tr>
<tr class="separator:a0ba353a3aacf9c6a99904092e6925080"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5935bd3762e5547cbaecb79cb712b62"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af5935bd3762e5547cbaecb79cb712b62"></a>
PieceType&#160;</td><td class="memItemRight" valign="bottom"><b>getPromotionPieceType</b> () const </td></tr>
<tr class="separator:af5935bd3762e5547cbaecb79cb712b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac855f50310a7bc109ef1043d0d23e20a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac855f50310a7bc109ef1043d0d23e20a"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="class_turn.html">Turn</a> &amp;other) const </td></tr>
<tr class="separator:ac855f50310a7bc109ef1043d0d23e20a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39b386ed78646f0a0bbf8fb9f56b9416"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39b386ed78646f0a0bbf8fb9f56b9416"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="class_turn.html">Turn</a> &amp;other) const </td></tr>
<tr class="separator:a39b386ed78646f0a0bbf8fb9f56b9416"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88390e444f78f864b130883b72dfa048"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a88390e444f78f864b130883b72dfa048"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>toString</b> () const </td></tr>
<tr class="separator:a88390e444f78f864b130883b72dfa048"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a08e5c0312464a870b9fdf6bf51c3e912"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a08e5c0312464a870b9fdf6bf51c3e912"></a>
static <a class="el" href="class_turn.html">Turn</a>&#160;</td><td class="memItemRight" valign="bottom"><b>move</b> (<a class="el" href="struct_piece.html">Piece</a> piece, Field from, Field to)</td></tr>
<tr class="separator:a08e5c0312464a870b9fdf6bf51c3e912"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf0bf8a688e4d1e946618e993ec319c9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abf0bf8a688e4d1e946618e993ec319c9"></a>
static <a class="el" href="class_turn.html">Turn</a>&#160;</td><td class="memItemRight" valign="bottom"><b>castle</b> (<a class="el" href="struct_piece.html">Piece</a> piece, Field from, Field to)</td></tr>
<tr class="separator:abf0bf8a688e4d1e946618e993ec319c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a500d3377d00c8d72d14093369c3ac8ba"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a500d3377d00c8d72d14093369c3ac8ba"></a>
static <a class="el" href="class_turn.html">Turn</a>&#160;</td><td class="memItemRight" valign="bottom"><b>promotionQueen</b> (<a class="el" href="struct_piece.html">Piece</a> piece, Field from, Field to)</td></tr>
<tr class="separator:a500d3377d00c8d72d14093369c3ac8ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9aa054c739e390fd43836002e86e97d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa9aa054c739e390fd43836002e86e97d"></a>
static <a class="el" href="class_turn.html">Turn</a>&#160;</td><td class="memItemRight" valign="bottom"><b>promotionBishop</b> (<a class="el" href="struct_piece.html">Piece</a> piece, Field from, Field to)</td></tr>
<tr class="separator:aa9aa054c739e390fd43836002e86e97d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a678b150295cd11271733c303ecd33bce"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a678b150295cd11271733c303ecd33bce"></a>
static <a class="el" href="class_turn.html">Turn</a>&#160;</td><td class="memItemRight" valign="bottom"><b>promotionRook</b> (<a class="el" href="struct_piece.html">Piece</a> piece, Field from, Field to)</td></tr>
<tr class="separator:a678b150295cd11271733c303ecd33bce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5101eeb17690b70f0722147b06a4b135"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5101eeb17690b70f0722147b06a4b135"></a>
static <a class="el" href="class_turn.html">Turn</a>&#160;</td><td class="memItemRight" valign="bottom"><b>promotionKnight</b> (<a class="el" href="struct_piece.html">Piece</a> piece, Field from, Field to)</td></tr>
<tr class="separator:a5101eeb17690b70f0722147b06a4b135"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a163154d82416e264c24a690535b5ff7b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a163154d82416e264c24a690535b5ff7b"></a>
static <a class="el" href="class_turn.html">Turn</a>&#160;</td><td class="memItemRight" valign="bottom"><b>pass</b> (PlayerColor player)</td></tr>
<tr class="separator:a163154d82416e264c24a690535b5ff7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a85d8ebd26d0a5fa972fee5b3078e8c25"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a85d8ebd26d0a5fa972fee5b3078e8c25"></a>
<a class="el" href="struct_piece.html">Piece</a>&#160;</td><td class="memItemRight" valign="bottom"><b>piece</b></td></tr>
<tr class="separator:a85d8ebd26d0a5fa972fee5b3078e8c25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96645916bc30d8eedf5fef3196a2838b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a96645916bc30d8eedf5fef3196a2838b"></a>
Field&#160;</td><td class="memItemRight" valign="bottom"><b>from</b></td></tr>
<tr class="separator:a96645916bc30d8eedf5fef3196a2838b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1d6dd41edce44b8312b657089e8c7a6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af1d6dd41edce44b8312b657089e8c7a6"></a>
Field&#160;</td><td class="memItemRight" valign="bottom"><b>to</b></td></tr>
<tr class="separator:af1d6dd41edce44b8312b657089e8c7a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfc4013d687fddcf56242ca8e4a3e711"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abfc4013d687fddcf56242ca8e4a3e711"></a>
enum Turn::Action&#160;</td><td class="memItemRight" valign="bottom"><b>action</b></td></tr>
<tr class="separator:abfc4013d687fddcf56242ca8e4a3e711"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Represents a chess turn. </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>S:/dev/3dchess/src/logic/<a class="el" href="_turn_8h_source.html">Turn.h</a></li>
<li>S:/dev/3dchess/src/logic/Turn.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Mar 9 2014 23:13:01 for 3dchess by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
